<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('新增项目信息')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-projectInfo-add">
          <div class="form-group">
                <label class="col-sm-3 control-label">项目编码：</label>
                <div class="col-sm-8">
                    <input name="code" class="form-control" type="text">
                </div>
            </div>
          <div class="form-group">
                <label class="col-sm-3 control-label">项目名称：</label>
                <div class="col-sm-8">
                    <input name="name" class="form-control" type="text">
                </div>
            </div>
          <div class="form-group">
                <label class="col-sm-3 control-label">业主单位：</label>
                <div class="col-sm-8">
                    <input name="owner" class="form-control" type="text">
                </div>
            </div>
          <div class="form-group">
            <label class="col-sm-3 control-label">状态</label>
                <div class="col-sm-8">
                    <input name="state" class="form-control" type="text">
                </div>
            </div>
          <div class="form-group">
                <label class="col-sm-3 control-label">最早开工日期：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                        <input name="estartDate" class="form-control" placeholder="yyyy-MM-dd" type="text">
                    </div>
                </div>
            </div>
          <div class="form-group">
                <label class="col-sm-3 control-label">最晚开工日期：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                        <input name="lstartDate" class="form-control" placeholder="yyyy-MM-dd" type="text">
                    </div>
                </div>
            </div>
          <div class="form-group">
                <label class="col-sm-3 control-label">最早完工日期：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                        <input name="efinishDate" class="form-control" placeholder="yyyy-MM-dd" type="text">
                    </div>
                </div>
            </div>
          <div class="form-group">
                <label class="col-sm-3 control-label">最晚完工日期：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                        <input name="lfinishDate" class="form-control" placeholder="yyyy-MM-dd" type="text">
                    </div>
                </div>
            </div>
          <div class="form-group">
                <label class="col-sm-3 control-label">1-最早开工，2-最晚完工：</label>
                <div class="col-sm-8">
                    <input name="planMode" class="form-control" type="text">
                </div>
            </div>
          <div class="form-group">
                <label class="col-sm-3 control-label">计划开始日期：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                        <input name="planStartDate" class="form-control" placeholder="yyyy-MM-dd" type="text">
                    </div>
                </div>
            </div>
          <div class="form-group">
                <label class="col-sm-3 control-label">计划完工日期：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                        <input name="planFinishDate" class="form-control" placeholder="yyyy-MM-dd" type="text">
                    </div>
                </div>
            </div>
          <div class="form-group">
                <label class="col-sm-3 control-label">计划工期：</label>
                <div class="col-sm-8">
                    <input name="planDuration" class="form-control" type="text">
                </div>
            </div>
          <div class="form-group">
                <label class="col-sm-3 control-label">实际开始日期：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                        <input name="actStartDate" class="form-control" placeholder="yyyy-MM-dd" type="text">
                    </div>
                </div>
            </div>
          <div class="form-group">
                <label class="col-sm-3 control-label">实际完工日期：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                        <input name="actFinishDate" class="form-control" placeholder="yyyy-MM-dd" type="text">
                    </div>
                </div>
            </div>
          <div class="form-group">
                <label class="col-sm-3 control-label">实际工期：</label>
                <div class="col-sm-8">
                    <input name="actDuration" class="form-control" type="text">
                </div>
            </div>
          <div class="form-group">
                <label class="col-sm-3 control-label">总时差：</label>
                <div class="col-sm-8">
                    <input name="totalFloat" class="form-control" type="text">
                </div>
            </div>
          <div class="form-group">
                <label class="col-sm-3 control-label">自由时差：</label>
                <div class="col-sm-8">
                    <input name="freeFloat" class="form-control" type="text">
                </div>
            </div>
          <div class="form-group">
                <label class="col-sm-3 control-label">项目分类：</label>
                <div class="col-sm-8">
                    <input name="sortId" class="form-control" type="text">
                </div>
            </div>
          <div class="form-group">
                <label class="col-sm-3 control-label">父项目：</label>
                <div class="col-sm-8">
                    <input name="pId" class="form-control" type="text">
                </div>
            </div>
          <div class="form-group">
                <label class="col-sm-3 control-label">父任务：</label>
                <div class="col-sm-8">
                    <input name="pTaskId" class="form-control" type="text">
                </div>
            </div>
          <div class="form-group">
                <label class="col-sm-3 control-label">排序码：</label>
                <div class="col-sm-8">
                    <input name="sortCode" class="form-control" type="text">
                </div>
            </div>
          <div class="form-group">
                <label class="col-sm-3 control-label">创建时间：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                        <input name="cdt" class="form-control" placeholder="yyyy-MM-dd" type="text">
                    </div>
                </div>
            </div>
          <div class="form-group">
                <label class="col-sm-3 control-label">创建人：</label>
                <div class="col-sm-8">
                    <input name="cdp" class="form-control" type="text">
                </div>
            </div>
          <div class="form-group">
                <label class="col-sm-3 control-label">创建人名：</label>
                <div class="col-sm-8">
                    <input name="cdpName" class="form-control" type="text">
                </div>
            </div>
          <div class="form-group">
                <label class="col-sm-3 control-label">审核时间：</label>
                <div class="col-sm-8">
                    <input name="checkState" class="form-control" type="text">
                </div>
            </div>
          <div class="form-group">
                <label class="col-sm-3 control-label">审核时间：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                        <input name="checkDt" class="form-control" placeholder="yyyy-MM-dd" type="text">
                    </div>
                </div>
            </div>
          <div class="form-group">
                <label class="col-sm-3 control-label">创建人：</label>
                <div class="col-sm-8">
                    <input name="checkDp" class="form-control" type="text">
                </div>
            </div>
          <div class="form-group">
                <label class="col-sm-3 control-label">审核人名：</label>
                <div class="col-sm-8">
                    <input name="checkName" class="form-control" type="text">
                </div>
            </div>
          <div class="form-group">
                <label class="col-sm-3 control-label">项目部门：</label>
                <div class="col-sm-8">
                    <input name="orgId" class="form-control" type="text">
                </div>
            </div>
          <div class="form-group">
                <label class="col-sm-3 control-label">项目地址：</label>
                <div class="col-sm-8">
                    <input name="address" class="form-control" type="text">
                </div>
            </div>
          <div class="form-group">
                <label class="col-sm-3 control-label">经度：</label>
                <div class="col-sm-8">
                    <input name="longitude" class="form-control" type="text">
                </div>
            </div>
          <div class="form-group">
                <label class="col-sm-3 control-label">纬度：</label>
                <div class="col-sm-8">
                    <input name="latitude" class="form-control" type="text">
                </div>
            </div>
          <div class="form-group">
                <label class="col-sm-3 control-label">项目OBS：</label>
                <div class="col-sm-8">
                    <input name="obs" class="form-control" type="text">
                </div>
            </div>
          <div class="form-group">
                <label class="col-sm-3 control-label">工作日历：</label>
                <div class="col-sm-8">
                    <input name="workCalendar" class="form-control" type="text">
                </div>
            </div>
          <div class="form-group">
                <label class="col-sm-3 control-label">null：</label>
                <div class="col-sm-8">
                    <input name="process" class="form-control" type="text">
                </div>
            </div>
          <div class="form-group">
                <label class="col-sm-3 control-label">null：</label>
                <div class="col-sm-8">
                    <input name="self" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script type="text/javascript">
        var prefix = ctx + "project/projectInfo"
        $("#form-projectInfo-add").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/add", $('#form-projectInfo-add').serialize());
            }
        }

        $("input[name='estartDate']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='lstartDate']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='efinishDate']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='lfinishDate']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='planStartDate']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='planFinishDate']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='actStartDate']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='actFinishDate']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='cdt']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='checkDt']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });
    </script>
</body>
</html>
